<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../JS/touch-0.2.14.min.js"></script>
</head>
<style>
    li{
        text-align: center;
        height: 50px;
        list-style-type: none;
        border: 1px solid #000;
    }
</style>
<body>
      <div>

      </div>
      <ul class="a">
        <li class="b">1</li>
        <li class="b">2</li>
        <li class="b">3</li>
        <li class="b">4</li>
        <li class="b">5</li>
        <li class="b">6</li>
      </ul>



    
</body>
<script>
    var a=document.querySelectorAll('.b')
    touch.on(a[0], 'tap', function () {
        console.log('单击');
      });
      touch.on(a[1], 'doubletap', function () {
        console.log('双击');
      });
      touch.on(a[2], 'hold', function () {
        console.log('长按');
      });
      touch.on(a[3], 'swipeleft', function () {
        console.log('向左滑动');
      })
      touch.on(a[4], 'swipedown', function () {
        console.log('向下滑动');
      })
      console.log(a);
</script>
</html>